package com.sktk.keepAccount.annotation;

import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.METHOD, ElementType.TYPE })
@Documented
public @interface RequestLimit {

    /**
     *
     * 允许访问的次数，默认值MAX_VALUE
     */
    int count() default 1;

    /**
     *
     * 时间段，单位为毫秒，默认值1秒钟
     */
    long time() default 1000;

}

